package com.example.project02springinitializr.controller;

import com.example.project02springinitializr.service.StudentService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * DateTime: 2025/5/26 - 22:30
 * Author: ErickRen
 */
@RestController
public class StudentController {
    
    @Resource
    private StudentService studentService;

    @RequestMapping("/student")
    public String getStudent() {
        return studentService.getStudent().toString();
    }
}